/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.springboot.hello.mapper;

import com.zxp.springboot.hello.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: shollin
 * @date: 2021/6/27/027 17:19
 */
public interface UserMapper {

    User getById(@Param("id") Long id);

    int insert(User user);

    @Select("select * from user ")
    List<User> selectAll();
}
